﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace Lecture
{
    class Program
    {
        static void Main(string[] args)
        {
            StreamReader file;

            try
            {
                file = new StreamReader("texte.txt");
                string line;
                while ((line = file.ReadLine()) != null)
                {
                    Console.WriteLine(line);
                }
                file.Close();
            }
            catch (IOException exc)
            {
                Console.WriteLine("Erreur : " + exc);
                Console.ReadLine();
            }
        }
    }
}
